<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/SpringBoot/clean/save}">
        <input type="hidden" name="id" th:if="${clean}" th:value="${clean.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">值日人学号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="user_id" placeholder="请输入值日人学号" th:value="${clean?.user_id}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">实验室</label>
            <div class="layui-input-inline">
<!--                <input class="layui-input" type="text" name="lab_id" placeholder="请输入实验室" th:value="${clean?.lab_id}">-->
                <select name="lab_id" class="layui-select">
                    <option th:each="lab:${labs}" th:value="${lab.id}" th:text="${lab.name}" th:selected="${lab.id eq lab_id}">
                    </option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">值日日期</label>
            <div class="layui-input-inline">
<!--                <input class="layui-input" type="text" name="week_day" placeholder="请输入值日" th:value="${clean?.week_day}">-->
                <select name="week_day" class="layui-select">
                    <option value="星期一" th:selected="${week_day eq '星期一'}">星期一</option>
                    <option value="星期二" th:selected="${week_day eq '星期二'}">星期二</option>
                    <option value="星期三" th:selected="${week_day eq '星期三'}">星期三</option>
                    <option value="星期四" th:selected="${week_day eq '星期四'}">星期四</option>
                    <option value="星期五" th:selected="${week_day eq '星期五'}">星期五</option>
                    <option value="星期六" th:selected="${week_day eq '星期六'}">星期六</option>
                    <option value="星期日" th:selected="${week_day eq '星期日'}">星期日</option>

                </select>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>